const mongoose = require('mongoose');

const MovieSchema = new mongoose.Schema({
  name: String,
  type: String,
  actors: Array,
  director: String
});

const MovieModel = mongoose.model('movie', MovieSchema);

//暴露
module.exports = MovieModel;